// 设置title
import { getEnvValue } from '@/utils/env';

export default function settingTitle(titleName: string | unknown) {
	if (titleName) {
		document.title = String(titleName);
	} else document.title = String(getEnvValue('VITE_APP_NAME'));
}
